<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/wslds-tags" prefix="lds"%>
<lds:html>
<lds:head>
	<script type="text/javascript" src="${ contextPath }/fckeditor/data/ckeditor.js"></script>
	<script type="text/javascript" src="${ contextPath }/fckeditor/data/adapters/jquery.js"></script>
	<title>添加博文</title>
</lds:head>
<lds:body>
	<div class="content_block">
		<div class="content_title">博文</div>
		<div class="clear"></div>
		<div class="content_content">
			<form action="<lds:linkTo action="insert" />" method="post" id="artForm">
				<input type="hidden" id="art_content" name="instance.content" value="" />
				<div class="content_row">
					<div class="title">博客来源</div>
					<div class="data">
						<label for="wslds.new"> 原创 </label> <input id="wslds.new" type="radio" name="instance.source" value="1" checked="checked" />
						&nbsp; <label for="wslds.trans"> 翻译 </label> <input id="wslds.trans" type="radio" name="instance.source" value="2" /> &nbsp;
						<label for="wslds.other"> 转载 </label> <input id="wslds.other" type="radio" name="instance.source" value="3" /> &nbsp;
					</div>
					<div></div>
				</div>
				<div class="content_row">
					<div class="title">博客类型</div>
					<div class="data">
						<select name="instance.typeId">
							<c:forEach var="type_" items="${ typeList }">
								<option value="${ type_.id }">${ type_.name }</option>
							</c:forEach>
						</select> &nbsp;
					</div>
					<div class="tip"></div>
				</div>
				<div class="content_row">
					<div class="title">博客标签</div>
					<div class="data">
						<select name="taginst[0].tagId">
							<option value="0">没有</option>
							<c:forEach var="tag_" items="${ tagList }">
								<option value="${ tag_.id }">${ tag_.name }</option>
							</c:forEach>
						</select> &nbsp; <select name="taginst[1].tagId">
							<option value="0">没有</option>
							<c:forEach var="tag_" items="${ tagList }">
								<option value="${ tag_.id }">${ tag_.name }</option>
							</c:forEach>
						</select> &nbsp; <select name="taginst[2].tagId">
							<option value="0">没有</option>
							<c:forEach var="tag_" items="${ tagList }">
								<option value="${ tag_.id }">${ tag_.name }</option>
							</c:forEach>
						</select> &nbsp;
					</div>
					<div class="tip"></div>
				</div>
				<div class="content_row">
					<div class="title">博客标题</div>
					<div class="data">
						<input type="text" id="artTitle" name="instance.title" value="" /> &nbsp;
					</div>
					<div class="tip" passed="false"></div>
				</div>
				<div class="content_row">
					<div class="title">博客内容</div>
					<div id="artContent">插入图片</div>
				</div>
				<div class="clear"></div>
				<div class="div4ck">
					<textarea cols="80" id="editor_kama" name="editor_kama" rows="10"></textarea>
				</div>
				<div>
					<input type="button" value="提交" id="choose" /> <input type="button" value="取消" id="cancel" />
				</div>
			</form>
		</div>
	</div>
</lds:body>
</lds:html>
